package sistema;

import java.io.File;
import java.io.IOException;

public class ThreadTarefa extends Thread {
	public ThreadTarefa(String tarefa) {
        super(tarefa);
	}
	
    public void run() {
    	try {
			Runtime.getRuntime().exec("bash broker addjob /home/isabellylr/workspace/Sistema/Jobs/" + this.getName() 
										+ ".jdf", null, new File("/home/isabellylr/broker"));
		} catch (IOException ex) {
			System.out.println(ex.getMessage());
		}
    }
}